package com.xjwn.datasync.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("schedule_setting")
public class ScheduleSetting extends Model<ScheduleSetting> {

   //任务ID
   @TableId
   private Integer jobId;
   //接口类型
   private String beanName;
   //目标数据库类型
   private String methodName;
   //目标表名
   private String methodParams;
   //cron表达式
   private String cronExpression;
   //状态（1正常 0暂停）
   private Integer jobStatus;
   //备注 任务名称
   private String remark;
   //创建时间
   private LocalDateTime createTime;
   //更新时间
   private LocalDateTime updateTime;
   //存储过程名称
   private String procName;
   //源数据库连接
   private String sdbUrl;
   //目标数据库连接
   private String tdbUrl;
   //存储过程参数 开始时间
   private String beginTime;
   //存储过程参数 结束时间
   private String endTime;
   //主键
   private String pkName;
   private String yydm;
   private String yymc;
}